//
//  MKUIElementViewTextField.h
//  MKUI
//  右侧为UITextField输入框
//  Created by 苏尚进 on 2023/7/13.
//  Copyright © 2023 moon. All rights reserved.
//

#import "MKUIElementViewBase.h"

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementViewTextField : MKUIElementViewBase<UITextFieldDelegate>
@property(nonatomic,readonly) UITextField *textField;
@property(nonatomic,strong,nullable) MKUILayoutConstraintItemWrapper *textFieldLayoutConstraint;
@property(nonatomic,strong,nullable) NSString *text;//输入的文本
@property(nonatomic,copy,nullable) void(^whenChange)(__kindof MKUIElementViewTextField *el,NSString *text);//输入文本变更时的回调
@property(nonatomic,copy,nullable) void(^whenReturn)(MKUIElementViewTextField *el);//return键被按下
@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementListViewCellTextField : MKUIElementListViewCellBase
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewTextField *elementView;
#pragma clang diagnostic pop
@end
NS_ASSUME_NONNULL_END
